package com.yc.bean;

import java.util.Random;

public abstract class Leader { //在gatway中对应的就是filter接口

    protected String name;//表示子类可访问
    protected Leader superior;

    protected Random random=new Random();

    public Leader(String name) {
        this.name = name;
    }
    public void setSuperior(Leader superior) {
        this.superior = superior;
    }
    public abstract void handleRequest(int leaveDays); //处理请求

}
